﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="yysfx.aspx.cs" Inherits="Catering.Catering_Page.ShanShiFenXi.yysfx" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register src="../../UCPanle/DDLTool.ascx" tagname="DDLTool" tagprefix="uc1" %>

<%@ Register src="../../UCPanle/UCSearchToolForPersonAvg.ascx" tagname="UCSearchToolForPersonAvg" tagprefix="uc2" %>

<%@ Register src="../../UCPanle/UCSearchToolByZW.ascx" tagname="UCSearchToolByZW" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>营养素分析</title>
    <script type="text/javascript" src="../../Style/zhezhao.js"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../Tool_Reporter/js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/zhezhao.css" />
    <style type="text/css">
        .report_xh_title{font-weight:bold; font-size:16px; color:#0066CC;}
    </style>
    <script type="text/javascript">
        function GetDataGroup(xcategory,title, data) {
            var chart;
            var banzuptions = {
                chart: { renderTo: 'container', zoomType: 'xy',type: 'column' }, //容器ID
                title: { text: title }, //报表大标题
                //subtitle: { text: '报表小标题' }, //报表小标题
                xAxis: {//x轴
                    type: 'sdf',
                    categories: xcategory,
                    gridLineWidth: 0,
                    labels: { align: 'right',
                        rotation: -45, 
                         style: {
                            fontSize: '13px',
                            fontFamily: '宋体,Verdana'
                        }
                    }
                },
                yAxis: [{ // left y axis
                    title: {
                        text: null
                    },
                    labels: {
                        align: 'left',
                        x: 3,
                        y:0.02,
                        formatter: function () {
                            return Highcharts.numberFormat(this.value, 0);
                        }
                    },
                    
                    showFirstLabel: false
                },
                { // right y axis
                    linkedTo: 0,
                    gridLineWidth: 1,
                    opposite: true,
                    title: { text: null },
                    labels: {
                        align: 'right',
                        x: -3,
                        y: 16,
                        formatter: function () {
                            return Highcharts.numberFormat(this.value, 0);
                        }
                    },
                    showFirstLabel: true
                }],
                tooltip: {
                    formatter: function () {
                        return '<b>' + this.x + '：</b><br/>' +
                        this.y + "%";
                    }
                },
                series: []
            };
            for (var i = 2; i < arguments.length; i++) {
                banzuptions.series[i - 2] = arguments[i];
            }
            chart = new Highcharts.Chart(banzuptions);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server"></asp:ScriptManager>
    <script type="text/javascript" src="../Tool_Reporter/js/highcharts.js"></script>
    <script type="text/javascript" src="../Tool_Reporter/js/modules/exporting.js"></script>
        <div class="xxk_button1">
            <ul>
                <li id="li2_1" class="li_over"><a href="yysfx.aspx" >&nbsp;&nbsp;营养素分析</a></li>
                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均分类统计查看"))
                  { %>
                <li id="li2_2" class="li_out"><a href="PersonAvgContrastLineChar.aspx" >&nbsp;&nbsp;人均分类统计</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均分类对比查看"))
                  { %>
                <li id="li2_3" class="li_out"><a href="PresonAvgContrant.aspx" >&nbsp;&nbsp;人均分类对比</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均消耗统计查看"))
                  { %>
                <li id="li2_4" class="li_out"><a href="PersonAvgXiaohaoChar.aspx" >&nbsp;&nbsp;人均消耗统计</a></li>
                <%}
                    if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjgfx.aspx", "人均食用油汇总查看"))
                    { %>
                <li id="li2_5" class="li_out"><a href="OilPersonContrast.aspx" >&nbsp;&nbsp;人均食用油汇总</a></li>
                <%} %>
            </ul>
        </div>
        <div class="Center_Content" id="div_search" style="display: block">
            <div class="div_0207 left_width500" style="height:34px; width:998px; background: url(../Images/div_h1_bg.gif)">
                <table align="left" style="height:34px" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table">
                    <thead>
                        <tr>
                            <td width="330"><uc1:DDLTool ID="DDLTool1" ISAdminAll="false" DisplayYear="false" runat="server" /></td>
                            <td width="40" align="right">年月：</td>
                            <td width="90"><asp:TextBox ID="SearchDate" runat="server" CssClass="input_bg" Width="80" ontextchanged="SearchDate_TextChanged" AutoPostBack="true"></asp:TextBox></td>
                            <td width="90">
                                <asp:DropDownList ID="dr_select_Week" runat="server"  CssClass="select_input_bg" Width="80">
                                    <asp:ListItem>选择周</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>&nbsp;</td>
                            <td align="right"><asp:LinkButton ID="lbtnTyleChar" runat="server" onclick="lbtnTyleChar_Click" >营养素分析</asp:LinkButton></td>
                            <td width="10"></td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="Center_Content" id="div2_1" style="display: block">
            <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
            <table id="datatable">
                <tr>
                    <td></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
<script type="text/javascript">    self.parent.frames["topFrame"].ddClass(2);</script>
